<extend name="base" />

<block name="style">
<style type="text/css">
.main_info table{width:300px; height:auto;}
.main_info table td{padding:10px;}
.main_info table tr:hover{background-color:rgb(240,245,250);}
.main_info table tr{border-bottom:#CCC 1px solid;}

.groupset{width:300px;}
</style>
</block>
<block name="md_title">
	<div class="title">用户授权</div>
    <button class="buttonC" style="float:left">返回列表</button>
    <button class="buttonA">提交</button>
</block>

<block name="main_cont">
	<table class="groupset">
	<form action="userGroup" method="post"><input type="hidden" name="userid" value="{$userid}">
    <foreach name="userGroups" item="group">
        	<if condition="($group.own eq 1)"><tr><td><input  type="checkbox"  name="ug[]" value="{$group.id}" class="checkbox" checked>{$group.title}</td></tr>
            <else /><tr><td><input type="checkbox" name="ug[]" class="checkbox" value="{$group.id}">{$group.title}</td></tr></if>
   	</foreach>
    </form>
</table>
</block>

<block name="script">
<script language="javascript">
function checkInput(){ return true };
</script>
</block>